/*
 * @Author: wangjq4214
 * @Date: 2022-05-03 22:35:36
 * @LastEditTime: 2022-05-03 23:30:29
 * @LastEditors: wangjq4214
 */
import { RouteObject } from 'react-router-dom';
import Loadable from '../Loadable';

const AddStorage = Loadable(lazy(() => import('@/views/storage/addStorage')));
const QueryStorage = Loadable(
  lazy(() => import('@/views/storage/queryStorage'))
);

export const storageRouter: RouteObject[] = [
  {
    path: 'storage',
    children: [
      {
        path: 'add',
        element: <AddStorage />,
        meta: {
          key: 'add-storage',
          icon: 'plus',
          name: '创建存储集群',
        },
      },
      {
        path: 'query',
        element: <QueryStorage />,
        meta: {
          key: 'query-storage',
          icon: 'list',
          name: '查询存储集群',
        },
      },
    ],
    meta: {
      key: 'storage',
      name: '存储集群',
      icon: 'storage',
    },
  },
];
